package com.shensi.appCollect.service;

import com.shensi.appCollect.pojo.CalPresentAmt;
import com.shensi.appCollect.pojo.CustomerCardSettingDetail;
import com.shensi.appCollect.pojo.PresentAmountRecord;
import com.shensi.appCollect.pojo.vo.RechargePrivilegeVO;

import java.math.BigDecimal;
import java.util.List;

public interface CustomerCardSettingDetailService {

    CalPresentAmt calConsumePresentAmtAndCreateRecord(String orderNo,String mobilePhone,BigDecimal receivableAmt,BigDecimal amt, Long enterpriseId, Long stationId,String payType,String cardOilsType,String gunName,Integer oilId,String bussinessName,String purpose);

    /**
     *
     * @param orderNo
     * @param mobilePhone
     * @param receivableAmt
     * @param amt
     * @param enterpriseId
     * @param stationId
     * @param payType
     * @param cardOilsType
     * @param gunName
     * @param oilId
     * @param bussinessName
     * @param purpose
     * @param genericPay true 通用卡 false 储值卡
     * @return
     */
    // 返利金活动
    CalPresentAmt calConsumePresentAmtAndCreateRecordReturnCash(String orderNo,String mobilePhone,BigDecimal receivableAmt,BigDecimal amt,
                                                                Long enterpriseId, Long stationId,String payType,String cardOilsType,String gunName,
                                                                Integer oilId,String bussinessName,String purpose,boolean genericPay,String cardType);

    PresentAmountRecord createRecord(BigDecimal presentAmt, String bussinessName, String mobilePhone, String orderNo, String purpose, Long cecId, Long ccsdId);
    boolean checkEffectiveTime(CustomerCardSettingDetail cardDetail);

    List<RechargePrivilegeVO> getStationRechargePrivilegeList(Long stationId,String cardType);
}
